package com.sm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

@SpringBootApplication
@MapperScan("com.sm.graduation.*.dao")
public class GraduationApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(GraduationApplication.class, args);
    }


    @Override
    public void run(String... args) throws Exception {

        String frontUrl = "http://127.0.0.1:9090/";
        try {
            Runtime.getRuntime().exec(
                    "cmd   /c   start  "+frontUrl);
        } catch (IOException e) {

            e.printStackTrace();
        }


    }
}
